import type { spuSaleAttrlist, spuImageList } from "./spuType";
export interface skuType {
  category3Id?: number;
  createTime?: string;
  id?: number;
  isSale?: number;
  price: number;
  skuAttrValueList: skuAttrValueListType[] | string[];
  skuDefaultImg: string;
  skuDesc: string;
  skuImageList: skuImageListType[];
  skuName: string;
  skuSaleAttrValueList: skuSaleAttrValueListType[] | string[];
  spuId?: number;
  tmId?: number;
  weight: string;
}
export interface skuAttrValueListType {
  attrId?: number;
  attrName: string;
  id?: number;
  skuId?: number;
  valueId?: number;
  valueName: string;
}
export interface skuImageListType {
  id?: number;
  imgName: string;
  imgUrl: string;
  isDefault?: string;
  skuId?: number;
  spuImgId?: number;
}
export interface skuSaleAttrValueListType {
  id?: number;
  saleAttrId?: number;
  saleAttrName: string;
  saleAttrValueId?: number;
  saleAttrValueName: string;
  skuId?: number;
  spuId?: number;
}
export interface skuListType {
  records: ArraySkuDateType;
  total: number;
  size: number;
  current: number;
  searchCount: boolean;
  pages: number;
}
export type ArraySkuDateType = skuDataType[];
export interface skuDataType {
  id: number;
  spuId: number;
  price: number;
  skuName: string;
  skuDesc: string;
  weight: string;
  tmId: null;
  category3Id: number;
  skuDefaultImg: string;
  isSale: number;
  createTime: string;
  skuImageList: null;
  skuAttrValueList: null;
  skuSaleAttrValueList: null;
}
export interface drawerType {
  skuImageList: spuImageList[];
  skuAttrValueList: skuAttrValueListType[];
  skuSaleAttrValueList: skuSaleAttrValueListType[];
  id: number;
  spuId: number;
  price: number;
  skuName: string;
  skuDesc: string;
  weight: string;
  tmId: null;
  category3Id: number;
  skuDefaultImg: string;
  isSale: number;
  createTime: string;
}
